package com.yang.springcloud.controler;

import com.yang.springcloud.pojo.Student;
import com.yang.springcloud.service.MenberClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MemberConsumerController {

    @Autowired
    private MenberClientService mcs;

    @GetMapping("/consumer/member/queryById/{passid}")
    public Student queryById(@PathVariable("passid") String passid) {
        return mcs.queryById(passid);
    }
}
